//
// Bomberman.cpp for  in /home/gomes_m//workzone/test/gdl
// 
// Made by mickael gomes
// Login   <gomes_m@epitech.net>
// 
// Started on  Wed May  1 15:41:45 2013 mickael gomes
// Last update Thu May  9 16:24:47 2013 mickael gomes
//

#include	"Bomberman.hh"

Bomberman::Bomberman()
{
}

void Bomberman::initialize(std::string const &path, float x1, float y1, float x2, float y2, float z)
{
  this->model_ = gdl::Model::load("Zell.avi");
}

Bomberman::~Bomberman(void)
{
}

void Bomberman::update(gdl::GameClock const & gameClock, gdl::Input & input)
{
  this->model_.update(gameClock);
  if (input.isKeyDown(gdl::Keys::P) == true)
    this->model_.play("Take 001");
}

void Bomberman::draw(void)
{
  this->model_.draw();
}
